package com.google.android.gms.internal;

import java.lang.Thread;

final class zzabd implements Thread.UncaughtExceptionHandler {
    private /* synthetic */ zzabb zzcra;
    private /* synthetic */ Thread.UncaughtExceptionHandler zzcrb;

    zzabd(zzabb zzabb, Thread.UncaughtExceptionHandler uncaughtExceptionHandler) {
        this.zzcra = zzabb;
        this.zzcrb = uncaughtExceptionHandler;
    }

    public final void uncaughtException(Thread thread, Throwable th) {
        try {
            this.zzcra.zza(thread, th);
            if (this.zzcrb == null) {
                return;
            }
        } catch (Throwable th2) {
            if (this.zzcrb != null) {
                this.zzcrb.uncaughtException(thread, th);
            }
            throw th2;
        }
        this.zzcrb.uncaughtException(thread, th);
    }
}
